package biz

import (
	"github.com/go-kratos/kratos/v2/log"
	"github.com/google/wire"
)

// ProviderSet is biz providers.
var ProviderSet = wire.NewSet(NewConfigUseCase)

// ConfigUseCase 将对用户的操作封装
type ConfigUseCase struct {
	repo ConfigRepo // 我们需要使用Repo来对数据库进行基础操作
	log  *log.Helper
}

func NewConfigUseCase(repo ConfigRepo, logger log.Logger) *ConfigUseCase {
	return &ConfigUseCase{
		repo: repo,
		log:  log.NewHelper(logger),
	}
}
